#!/usr/bin/env node

const fs = require('fs');
const dir = process.argv[2];
const {resolve} = require('path');
     
if(process.argv.length === 2){
  console.log(resolve('./'));
}

try{
  console.log(fs.readdirSync(dir));
}catch(e){
  console.error(e.message);
  process.exit(1);
}

